package com.teyao.teyao_back.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.teyao.teyao_back.entity.Driver;
import com.teyao.teyao_back.entity.ResponseMessage;
import com.teyao.teyao_back.mapper.DriverMapper;
import com.teyao.teyao_back.service.DriverService;
import org.springframework.stereotype.Service;

@Service
public class DriverServiceImpl extends ServiceImpl<DriverMapper, Driver> implements DriverService {
    @Override
    public ResponseMessage selectAll() {
        ResponseMessage responseMessage = new ResponseMessage();
        responseMessage.setData(baseMapper.selectList(null));

        return responseMessage;
    }
}
